package urlconfig;

import java.time.LocalDateTime;
import java.util.TimeZone;

/**
 * @author 01395265
 * @date 2021/6/4
 */
public class TestJVMTimeZone {

    public static void main(String[] args) {

        System.out.println(LocalDateTime.now());
        System.out.println(TimeZone.getDefault());

        TimeZone.setDefault(TimeZone.getTimeZone("GMT+6:00"));

        System.out.println(LocalDateTime.now());
        System.out.println(TimeZone.getDefault());

    }

}
